package com.zut.service.impl;

import com.zut.dao.AdminDao;
import com.zut.domain.Admin;
import com.zut.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminDao adminDao;


    public Admin getByNP(Admin admin) {
        return adminDao.getByNP(admin);
    }

    public boolean update(Admin admin) {
        return adminDao.update(admin) > 0;
    }

    public String getPassword(String id) {
        return adminDao.getPassword(id);
    }
}
